/**
 * @param {View} shell
 * @constructor
 * @extends {BaseMediator}
 */
function EmbedMediator(shell)
{
	"use strict";

	this.init(shell, '#embed');

	/** @type {EmbedMediator} */
	var _this = this;

	/**
	 * @return {EmbedMediator}
	 */
	this.updateNavigation = function()
	{
		if (Session.set)
		{
			_this.content.find('textarea')
				.html('&lt;embed src="' + window.location.origin + '/embed/' + Session.set.id
					+ '" seamless="true" frameborder="0" style="border: 1px solid #000'
					+ '" width="' + Enum.embed.width
					+ '" height="' + Enum.embed.height
					+ '"/&gt;');
		}
		return _this;
	};
}
EmbedMediator.inherit(BaseMediator);